Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Mar 12, 2025

Context

I want to gather some info on which diff strategies people are using and how it affects the number of messages they send.

Implementation

I added a getName method to DiffStrategy and then added it to the list of global properties.


Important

Adds getName() to diff strategies and includes strategy name in telemetry data.

  • Behavior:
    • Adds getName() method to DiffStrategy interface in types.ts to return the strategy name.
    • Updates ClineProvider.ts to include diffStrategy name in telemetry properties if currentCline has a diffStrategy.
  • Strategies:
    • Implements getName() in MultiSearchReplaceDiffStrategy, NewUnifiedDiffStrategy, SearchReplaceDiffStrategy, and UnifiedDiffStrategy to return respective strategy names.
  • Tests:
    • Adds getName() to mockDiffStrategy in sections.test.ts for testing purposes.

This description was created by Ellipsis for 0d8c6e7. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2025

⚠️ No Changeset found

Latest commit: 0d8c6e7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 12, 2025
@dosubot dosubot bot added lgtm This PR has been approved by a maintainer enhancement New feature or request labels Mar 12, 2025
@mrubens mrubens merged commit 3cd6c74 into main Mar 12, 2025
18 checks passed
@mrubens mrubens deleted the diff_strategy_telemetry branch March 12, 2025 17:54
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants